package org.example.ioc.component;

/**
 * ClassName: HappyComponent
 * Package: org.example.ioc.component
 * Description:
 *
 * @Author wanghao
 * @Create 2024-07-02 15:30
 * @Version 1.0
 */
public class HappyComponent {

    private String componentName;

    private HappyMachine happyMachine;

    public String getComponentName() {
        return componentName;
    }

    public void setComponentName(String componentName) {
        this.componentName = componentName;
    }

    public HappyMachine getHappyMachine() {
        return happyMachine;
    }

    public void setHappyMachine(HappyMachine happyMachine) {
        this.happyMachine = happyMachine;
    }

    public void doWork() {
        System.out.println("component do work ...");
    }

    public void happyInitMethod() {
        System.out.println("component init method ...");
    }

    public void happyDestroyMethod() {
        System.out.println("component destroy method ...");
    }

}
